/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.infor.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.modules.infor.entity.Width;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

import java.util.Date;

/**
 * 价格表Entity
 * @author 李超辉
 * @version 2018-05-18
 */
public class Price extends DataEntity<Price> {
	
	private static final long serialVersionUID = 1L;
	private Project projectName;		// 项目名称
	private String mo;		// 运输方式
	private Start start;		// 起运地
	private Settlement address;		//结算地
	private Width width1;		// 区间1
	private String price1;		// 价格1
	private String ad1;		// 附加费1
	private Width width2;		// 区间2
	private String price2;		// 价格2
	private String ad2;		// 附加费2
	private Width width3;		// 区间3
	private String price3;		// 价格3
	private String ad3;		// 附加费3
	private Width width4;		// 区间4
	private String price4;		// 价格4
	private String ad4;		// 附加费4
	private Width width5;		// 区间5
	private String price5;		// 价格5
	private String ad5;		// 附加费5
	private String price;		// 特殊单价
	private String maxm;		// 最大里程
	private String minm;		// 最小里程
	private Date min;//生效日期
	private Date max;//截止日期
	
	public Price() {
		super();
	}

	public Price(String id){
		super(id);
	}

	@ExcelField(title="项目名称", align=2, sort=5)
	public Project getProjectName() {
		return projectName;
	}

	public void setProjectName(Project projectName) {
		this.projectName = projectName;
	}
	
	@ExcelField(title="作业类型", align=2, sort=6)
	public String getMo() {
		return mo;
	}

	public void setMo(String mo) {
		this.mo = mo;
	}
	
	@ExcelField(title="起运地", align=2, sort=7)
	public Start getStart() {
		return start;
	}

	public void setStart(Start start) {
		this.start = start;
	}
	
	@ExcelField(title="结算地", align=2, sort=8)
	public Settlement getAddress() {
		return address;
	}

	public void setAddress(Settlement address) {
		this.address = address;
	}
	
	@ExcelField(title="区间1", align=2, sort=9)
	public Width getWidth1() {
		return width1;
	}

	public void setWidth1(Width width1) {
		this.width1 = width1;
	}
	
	@ExcelField(title="价格1", align=2, sort=10)
	public String getPrice1() {
		return price1;
	}

	public void setPrice1(String price1) {
		this.price1 = price1;
	}
	
	@ExcelField(title="附加费1", align=2, sort=11)
	public String getAd1() {
		return ad1;
	}

	public void setAd1(String ad1) {
		this.ad1 = ad1;
	}
	
	@ExcelField(title="区间2", align=2, sort=12)
	public Width getWidth2() {
		return width2;
	}

	public void setWidth2(Width width2) {
		this.width2 = width2;
	}
	
	@ExcelField(title="价格2", align=2, sort=13)
	public String getPrice2() {
		return price2;
	}

	public void setPrice2(String price2) {
		this.price2 = price2;
	}
	
	@ExcelField(title="附加费2", dictType="del_flag", align=2, sort=14)
	public String getAd2() {
		return ad2;
	}

	public void setAd2(String ad2) {
		this.ad2 = ad2;
	}
	
	@ExcelField(title="区间3", align=2, sort=15)
	public Width getWidth3() {
		return width3;
	}

	public void setWidth3(Width width3) {
		this.width3 = width3;
	}
	
	@ExcelField(title="价格3", align=2, sort=16)
	public String getPrice3() {
		return price3;
	}

	public void setPrice3(String price3) {
		this.price3 = price3;
	}
	
	@ExcelField(title="附加费3", align=2, sort=17)
	public String getAd3() {
		return ad3;
	}

	public void setAd3(String ad3) {
		this.ad3 = ad3;
	}
	
	@ExcelField(title="区间4", align=2, sort=18)
	public Width getWidth4() {
		return width4;
	}

	public void setWidth4(Width width4) {
		this.width4 = width4;
	}
	
	@ExcelField(title="价格4", align=2, sort=19)
	public String getPrice4() {
		return price4;
	}

	public void setPrice4(String price4) {
		this.price4 = price4;
	}
	
	@ExcelField(title="附加费4", align=2, sort=20)
	public String getAd4() {
		return ad4;
	}

	public void setAd4(String ad4) {
		this.ad4 = ad4;
	}
	
	@ExcelField(title="区间5", align=2, sort=21)
	public Width getWidth5() {
		return width5;
	}

	public void setWidth5(Width width5) {
		this.width5 = width5;
	}
	
	@ExcelField(title="价格5", align=2, sort=22)
	public String getPrice5() {
		return price5;
	}

	public void setPrice5(String price5) {
		this.price5 = price5;
	}
	
	@ExcelField(title="附加费5", align=2, sort=23)
	public String getAd5() {
		return ad5;
	}

	public void setAd5(String ad5) {
		this.ad5 = ad5;
	}
	
	@ExcelField(title="特殊单价", align=2, sort=24)
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@ExcelField(title="最大里程", align=2, sort=25)
	public String getMaxm() {
		return maxm;
	}

	public void setMaxm(String maxm) {
		this.maxm = maxm;
	}
	
	@ExcelField(title="最小里程", align=2, sort=27)
	public String getMinm() {
		return minm;
	}

	public void setMinm(String minm) {
		this.minm = minm;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="生效日期", align=2, sort=28)
	public Date getMin() {
		return min;
	}

	public void setMin(Date min) {
		this.min = min;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="截止日期", align=2, sort=29)
	public Date getMax() {
		return max;
	}

	public void setMax(Date max) {
		this.max = max;
	}
}